﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VictorBlaga.DocumentManagement.Infrastructure;

namespace VictorBlaga.DocumentManagement.Helpers.Validators
{
    public interface IValidator<T>
    {
        T ViewModel { get; set; }

        bool IsInsertValid();
        ValidationError[] GetInsertValidationErrors();

        bool IsUpdateValid();
        ValidationError[] GetUpdateValidationErrors();
    }
}
